package com.miaoa.jbox2d.demo;

import org.jbox2d.dynamics.Body;

/**
 * 自定义刚体对象
 *
 * @Author Mlethe
 * @Date 2023/7/13
 */
public class RigidBody {
    /**
     * 图片资源类型
     */
    private final int type;
    /**
     * 宽度
     */
    private int width;
    /**
     * 高度
     */
    private int height;
    /**
     * 刚体对象
     */
    private Body body;

    public RigidBody(int type) {
        this.type = type;
    }

    public RigidBody(int type, int width, int height) {
        this.type = type;
        this.width = width;
        this.height = height;
    }

    public int getType() {
        return type;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Body getBody() {
        return body;
    }

    public void setBody(Body body) {
        this.body = body;
    }
}
